<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ page import="org.DAL.Article" %>
<%@ page import="org.DAL.Catalogue" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Catalogue</title>
</head>
<body>

<h1>Catalogue</h1>
<a href="monpanier.jsp">Mon panier</a>
<hr>

<%
Catalogue.init();
for (Article a : Catalogue.getCatalogue())
{
	%>
	<form action="/web_project/AjoutAuPanier" method="POST">
	<div style="float:left;height:auto;width:300px;border:1px solid black;text-align:center;">
	<%	out.println (a.toString());	%>
	<input type="hidden" value=<%= a.getId() %> name="id"></input>
	<input type="hidden" value=<%= a.getPrix() %> name="prix"></input>
	<input type="text" name="nombre" value="1" size="1" maxlength="3"></input>
	<input type="submit" value="Ajouter au panier"></input>
	</div>
	</form>
<%}%>


</body>
</html>